/*
============================================================================
 Name        : SBNinePatchDocument.cpp
 Author      : LJin
 Version     :
 Copyright   : This is LJin's Program
 Description : Application document class (model)
============================================================================
*/

// INCLUDE FILES
#include "SBNinePatchAppUi.h"
#include "SBNinePatchDocument.h"

// ============================ MEMBER FUNCTIONS ===============================

// -----------------------------------------------------------------------------
// CSBNinePatchDocument::NewL()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSBNinePatchDocument* CSBNinePatchDocument::NewL( CEikApplication&
	aApp )
	{
	CSBNinePatchDocument* self = NewLC( aApp );
	CleanupStack::Pop( self );
	return self;
	}

// -----------------------------------------------------------------------------
// CSBNinePatchDocument::NewLC()
// Two-phased constructor.
// -----------------------------------------------------------------------------
//
CSBNinePatchDocument* CSBNinePatchDocument::NewLC( CEikApplication&
	aApp )
	{
	CSBNinePatchDocument* self =
		new ( ELeave ) CSBNinePatchDocument( aApp );

	CleanupStack::PushL( self );
	self->ConstructL();
	return self;
	}

// -----------------------------------------------------------------------------
// CSBNinePatchDocument::ConstructL()
// Symbian 2nd phase constructor can leave.
// -----------------------------------------------------------------------------
//
void CSBNinePatchDocument::ConstructL()
	{
	// No implementation required
	}

// -----------------------------------------------------------------------------
// CSBNinePatchDocument::CSBNinePatchDocument()
// C++ default constructor can NOT contain any code, that might leave.
// -----------------------------------------------------------------------------
//
CSBNinePatchDocument::CSBNinePatchDocument( CEikApplication& aApp )
	: CAknDocument( aApp )
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CSBNinePatchDocument::~CSBNinePatchDocument()
// Destructor.
// ---------------------------------------------------------------------------
//
CSBNinePatchDocument::~CSBNinePatchDocument()
	{
	// No implementation required
	}

// ---------------------------------------------------------------------------
// CSBNinePatchDocument::CreateAppUiL()
// Constructs CreateAppUi.
// ---------------------------------------------------------------------------
//
CEikAppUi* CSBNinePatchDocument::CreateAppUiL()
	{
	// Create the application user interface, and return a pointer to it;
	// the framework takes ownership of this object
	return ( static_cast <CEikAppUi*> ( new ( ELeave )
		CSBNinePatchAppUi ) );
	}

// End of File
